package com.goa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author chuyongshuo
 * @version 1.0
 * @date 2024/11/8 14:00
 */
@Data
public class CurrentVoltage {
    private Integer id;             //主键
    private Integer deviceId;          // 设备ID
    private double aCurrent;       // A相电流
    private double bCurrent;       // B相电流
    private double cCurrent;       // C相电流
    private double aVoltage;       // A相电压
    private double bVoltage;       // B相电压
    private double cVoltage;       // C相电压
    private Long timestamp;         // 时间戳
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;        //创建时间
    //其他字段 不做数据库映射 业务使用
    private String status;
}
